<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    /* PC端：鼠标悬停 */
    button:hover{
      background-color: blueviolet;
    }
    /* 移动端：按下状态 */
    button:active{
      background-color: blue;
    }
  </style>
</head>
<body>
  <button>点击按钮</button>
</body>
</html>